#define QUEUE_MAX_SIZE 500
#define URL_MAX_LEN 256
#define HOST_MAX_LEN 64
#define PATH_MAX_LEN 256
#define FILE_NAME_MAX_LEN 128
#define ONE_LINE_LEN 64
#define LCS_STR_LEN 128

typedef enum encode_type_e
{
	ENCODE_GZIP = 0,
	ENCODE_MD5,
	ENCODE_DES,
	ENCODE_NONE
}encode_type_t;

typedef struct
{
	char *data[QUEUE_MAX_SIZE];
	int front,rear;
}Queue_t;

void queue_init(Queue_t *pQueue);
void queue_destory(Queue_t *pQueue);
int queue_en(Queue_t *pQueue, char *pVal);
int queue_de(Queue_t *pQueue, char *pVal);
int queue_empty(Queue_t *pQueue);
int queue_full(Queue_t *pQueue);
int queue_len(Queue_t *pQueue);
int queue_find(Queue_t *pQueue, char *pVal);
void lcs(const char *s1, const char *s2, char *plcs);
